package org.dromara.assets.domain.vo;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.dromara.assets.domain.AssetsTradeRecord;
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 交易记录视图对象 assets_traderecord
 *
 * @author EdwardChan
 * @date 2025-06-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = AssetsTradeRecord.class)
public class AssetsTradeRecordVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 平台
     */
    @ExcelProperty(value = "平台")
    private Long platform;

    /**
     * 余额
     */
    @ExcelProperty(value = "余额")
    private String orderid;

    /**
     * 币种
     */
    @ExcelProperty(value = "币种")
    private String tokenPair;

    /**
     * 订单价格
     */
    @ExcelProperty(value = "订单价格")
    private BigDecimal price;

    /**
     * 挂单数量
     */
    @ExcelProperty(value = "挂单数量")
    private BigDecimal amount;

    /**
     * 已成交数量
     */
    @ExcelProperty(value = "已成交数量")
    private BigDecimal filledAmount;

    /**
     * 已成交总金额
     */
    @ExcelProperty(value = "已成交总金额")
    private BigDecimal filledCashAmount;

    /**
     * 状态
     */
    @ExcelProperty(value = "状态")
    private String state;

    /**
     * 订单方向
     */
    @ExcelProperty(value = "订单方向")
    private String orderType;

    /**
     * 订单创建时间
     */
    @ExcelProperty(value = "订单创建时间")
    private Date createAt;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String comment;

    /**
     * 逆向购买金额
     */
    @ExcelProperty(value = "逆向购买金额")
    private BigDecimal backwardAmount;

    /**
     * 来源ID
     */
    @ExcelProperty(value = "来源ID")
    private String fromOrderid;

    /**
     * 交易所账号
     */
    @ExcelProperty(value = "交易所账号")
    private Long accountId;

    /**
     * 收益金额
     */
    @ExcelProperty(value = "收益金额")
    private BigDecimal winAmount;

    /**
     * 订单成交时间
     */
    @ExcelProperty(value = "订单成交时间")
    private Date finishAt;

    /**
     * 是否手续费已经入库，0:未入库，1:已入库
     */
    @ExcelProperty(value = "是否手续费已经入库，0:未入库，1:已入库")
    private Long feeOk;

    /**
     * 手续费描述
     */
    @ExcelProperty(value = "手续费描述")
    private String feeDesc;


}
